package com.chen.facemanager.redis;

/**
 * @ClassName BasePrefix
 * @Description
 * @Author Mr-CHEN
 * @Date 2019/8/20 19:12
 * @Version V1.0
 **/

public abstract class BasePrefix implements KeyPrefix{


    private String prefix;

    public BasePrefix( String prefix) {
        this.prefix = prefix;
    }

    @Override
    public String getPrefix() {
        String className = getClass().getSimpleName();
        return className+":" + prefix;
    }

}